<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改邮件列')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-etlMail-edit" th:object="${etlMail}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">收件人，多个用';'符号隔开：</label>
				<div class="col-sm-8">
					<input id="toAddress" name="toAddress" th:field="*{toAddress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">抄送人，多个用';'符号隔开：</label>
				<div class="col-sm-8">
					<input id="ccAddress" name="ccAddress" th:field="*{ccAddress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件主题：</label>
				<div class="col-sm-8">
					<input id="subject" name="subject" th:field="*{subject}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件，多个用';'符号隔开：</label>
				<div class="col-sm-8">
					<input id="appendix" name="appendix" th:field="*{appendix}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件正文：</label>
				<div class="col-sm-8">
					<input id="mailBody" name="mailBody" th:field="*{mailBody}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发件人：</label>
				<div class="col-sm-8">
					<input id="sender" name="sender" th:field="*{sender}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">脚本名称：</label>
				<div class="col-sm-8">
					<input id="scriptName" name="scriptName" th:field="*{scriptName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">脚本用途：</label>
				<div class="col-sm-8">
					<input id="scriptUsage" name="scriptUsage" th:field="*{scriptUsage}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="scriptContent" name="scriptContent" th:field="*{scriptContent}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划开始时间：</label>
				<div class="col-sm-8">
					<input id="planningStartTime" name="planningStartTime" th:field="*{planningStartTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划结束时间：</label>
				<div class="col-sm-8">
					<input id="planningEndTime" name="planningEndTime" th:field="*{planningEndTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">实际开始时间：</label>
				<div class="col-sm-8">
					<input id="realStartTime" name="realStartTime" th:field="*{realStartTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">实际结束时间：</label>
				<div class="col-sm-8">
					<input id="realEndTime" name="realEndTime" th:field="*{realEndTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<input id="status" name="status" th:field="*{status}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">运行次数：</label>
				<div class="col-sm-8">
					<input id="runs" name="runs" th:field="*{runs}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件发送时间：</label>
				<div class="col-sm-8">
					<input id="sendTime" name="sendTime" th:field="*{sendTime}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "xman/etlMail";
		$("#form-etlMail-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-etlMail-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
